package com.example.pojo.vo;

import com.example.pojo.entity.User;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class UserVO {
    private String userName;
    private String petName;
    private Integer gender;
    //    private Integer age;

    private String email;

    private LocalDate birthday;
    private Integer isDel;
    private Integer isBlack;

    private LocalDateTime createTime;
    private LocalDateTime updateTime;

    public UserVO(User user) {
        this.userName = user.getUserName();
        this.petName = user.getPetName();
        this.gender = user.getGender();

        this.email = user.getEmail();

        this.birthday = user.getBirthday();
        this.isDel = user.getIsDel();
        this.isBlack = user.getIsBlack();

        this.createTime = user.getCreateTime();
        this.updateTime = user.getUpdateTime();
    }
}
